From ea9ae21f70cb5bf516e1008c9953dbe0f0883a14 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 14 Dec 2010 18:47:52 +0000 Subject: [PATCH] xenpaging: remove perror usage in xenpaging_init error path Use the libxc error macro to report errors if initialising xenpaging fails. Also report the actual errno string. Signed-off-by: Olaf Hering Signed-off-by: Ian Jackson --- tools/xenpaging/xenpaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c index 9bfbd12ea0..0e82121e29 100644 --- a/tools/xenpaging/xenpaging.c +++ b/tools/xenpaging/xenpaging.c @@ -141,7 +141,7 @@ xenpaging_t *xenpaging_init(xc_interface **xch_r, domid_t domain_id) ERROR("EPT not supported for this guest"); break; default: - perror("Error initialising shared page"); + ERROR("Error initialising shared page: %s", strerror(errno)); break; } goto err; -- 2.30.2